package com.shunda.trade.service;

import com.shunda.trade.entity.TradeProfitSharingAccount;
import com.shunda.trade.mapper.TradeProfitSharingAccountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: dongyq
 * @date: 2025/4/6 13:30
 * @since: 1.0.0
 * @功能描述:
 */
@Service
public class TradeProfitSharingAccountServiceImpl implements ITradeProfitSharingAccountService {

    @Autowired
    private TradeProfitSharingAccountMapper profitSharingAccountMapper;

    @Override
    public TradeProfitSharingAccount selectAccountByDeptId(Long deptId) {
        return profitSharingAccountMapper.selectAccountByDeptId(deptId);
    }

    @Override
    public int insertTo(TradeProfitSharingAccount sharingAccount) {
        return profitSharingAccountMapper.insertTo(sharingAccount);
    }

    @Override
    public void deleteTo(TradeProfitSharingAccount sharingAccount) {
        profitSharingAccountMapper.deleteTo(sharingAccount);
    }

    @Override
    public List<TradeProfitSharingAccount> selectList(TradeProfitSharingAccount sharingAccount) {
        return profitSharingAccountMapper.selectList(sharingAccount);
    }
}
